{template common/contentheader}
<div class="setcontent">
	<div class="settitle">
		<h3>{lang admin_user_star:admin}</h3>
	</div>
	<div class="alert alert-info mt10">
		<span class="label label-info">{lang info:admin}</span>
		{lang admin_user_star:admin}
	</div>
	<div class="setform">
		<form class="pzform" method="post" action="{url admin/starusers?act=edit&starid=$star['star_id']}" id="addform">
			<div class="formgroup">
				<label class="formlabel">{lang th_nickname:admin}:</label>
				<div class="formcontrol">
					<input type="text" value="$star['nickname']" disabled/>
				</div>
				<span class="formhelp">{lang category_name:admin}</span>
			</div>

			<div class="formgroup">
				<label class="formlabel">{lang th_email:admin}:</label>
				<div class="formcontrol">
					<input type="text" value="$star['email']" disabled/>
				</div>
				<span class="formhelp">{lang th_email:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang category_name:admin}:</label>
				<div class="formcontrol">
					<select name="category_id" id="category_id">
						{loop $categories $root}
						<option value="$root['category_id']" {if $star['"category_id"']==$root['category_id']}selected{/if}>$root['category_name']</option> 
						{/loop}
					</select>
				</div>
				<span class="formhelp">{lang category_name:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang th_displayorder:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="display_order" value="$star['display_order']" id="display_order"/>
				</div>
				<span class="formhelp">{lang th_displayorder:admin}</span>
			</div>

			<div class="formgroup">
				<label class="formlabel">{lang description:admin}:</label>
				<div class="formcontrol">
					<textarea type="text" id="star_reason" name="star_reason" rows="3">$star['star_reason']</textarea>
				</div>
				<span class="formhelp">{lang description:admin}</span>
			</div>
			
			<div class="formbuttons">
				<button type="submit" class="btn btn-primary">{lang save:admin}</button>
			</div>
		</form>
	</div>
</div>
{template common/contentfooter}